import Vue from 'vue'
import App from './App'
import './api/ican-H5Api'

import {http} from './api/api'
import {upload} from './api/upload'
Vue.config.productionTip = false
Vue.prototype.$http = http;
Vue.prototype.$upload = upload;
App.mpType = 'app'


Vue.prototype.checkLogin  = function(){
	var user_id  = uni.getStorageSync('uid');
	console.log(user_id)
	if(!user_id){
		uni.navigateTo({
			url:'../login/login'
		});
		return false;
	}
	return user_id;
}


Vue.prototype.token  = "gracekey5001actye-100001";

const app = new Vue({
    ...App
})
app.$mount()
